Skip to content

Add editorial-promo block#39

Merged
shsteimer merged 6 commits into
mainfrom
feature/editorial-promo
Oct 14, 2025
Merged

Add editorial-promo block#39
shsteimer merged 6 commits into
mainfrom
feature/editorial-promo

Conversation

@shsteimer

Copy link
Copy Markdown
Collaborator

Summary

  • Implements editorial-promo block for displaying promotional content in the recipe sidebar
  • Card-style layout with thumbnail images and linked text
  • Used in the recipe-sidebar fragment to promote editorial content

Implementation Details

  • Each promo item displays a 161x121px thumbnail image alongside linked text
  • Vertical list layout with 16px gap between items
  • Uses createOptimizedPicture for efficient image loading
  • Hover effects provide visual feedback
  • Responsive design follows mobile-first approach

Test Plan

  • Block renders correctly in recipe sidebar
  • Images are optimized and load properly
  • Links are functional
  • Hover states work as expected
  • Linting passes

Test URL

https://feature-editorial-promo--food-network--cloudadoption.aem.page/recipes/goulash-8670582

Check the sidebar on the right to see the editorial promo blocks under "What's Cooking" and "Shop With Us" sections.

Closes #18

🤖 Generated with Claude Code

shsteimer and others added 6 commits October 13, 2025 16:05
Implement a new recipe-nav block that displays navigation links to the previous and next recipes. This block can be directly authored or populated from page metadata.

Features:
- Displays previous and next recipe links in a horizontal layout
- Includes arrow icons for better UX
- Fully responsive design (stacks vertically on mobile)
- Accessible with proper ARIA labels and semantic HTML
- Uses modern CSS with range notation for media queries
- Follows project coding standards and passes all linting checks

The block decorates authored content into a semantic nav structure with proper styling and hover states.

Closes #6

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Remove button-style borders and backgrounds for cleaner look
- Use teal chevrons (‹ ›) instead of arrows
- Style text as uppercase gray with proper letter-spacing
- Increase spacing and adjust colors to match mockup
- Maintain responsive behavior and accessibility features

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Implements a responsive recipe information block that displays:
- Level (difficulty)
- Total time
- Prep/Active time
- Cook time (if present)
- Yield (servings)
- Nutrition Info link (non-functional per requirements)

Layout:
- Mobile: 2-column grid with specific item ordering
- Desktop: 3-column grid with vertical dividers

Resolves #9

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Implements a card-style promo block for displaying editorial content links with thumbnail images. Each item shows an image thumbnail (161x121px) alongside linked text.

Features:
- Vertical list layout with 16px gap between items
- Optimized images using createOptimizedPicture
- Hover effects on links
- Responsive design
- Clean semantic HTML structure

Closes #18

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@aem-code-sync

aem-code-sync Bot commented Oct 14, 2025

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@aem-code-sync

aem-code-sync Bot commented Oct 14, 2025

Copy link
Copy Markdown
Page Scores Audits Google
📱 /recipes/goulash-8670582 PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ /recipes/goulash-8670582 PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@shsteimer
shsteimer merged commit c76ab4b into main Oct 14, 2025
3 checks passed
@shsteimer
shsteimer deleted the feature/editorial-promo branch October 14, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Editorial Promo

1 participant